import { createRouter, createWebHistory } from 'vue-router'

import Index from '@/views/Index/index.vue'
import RiskFinding from '@/views/RiskFinding/index.vue'
import RiskAnalysis from '@/views/RiskAnalysis/index.vue'
import RiskEvolution from '@/views/RiskEvolution/index.vue'
import RiskDecision from '@/views/RiskDecision/index.vue'
import DataIndex from '@/views/DataIndex/index.vue'
import DataSentiment from '@/views/DataSentiment/index.vue'
import DataCorrelation from '@/views/DataCorrelation/index.vue'
import DataAssess from '@/views/DataAssess/index.vue'
import ProgrammeIndex from '@/views/ProgrammeIndex/index.vue'
import EnterpriseRiskAssessment from '@/views/EnterpriseRiskAssessment/index.vue'
import AccountIdentification from '@/views/AccountIdentification/index.vue'
import BillFraudDetection from '@/views/BillFraudDetection/index.vue'
import CreditRiskControl from '@/views/CreditRiskControl/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index,
      meta: {
        title: '平台首页',
      },
    },
    {
      path: '/risk-finding',
      name: 'risk-finding',
      component: RiskFinding,
      meta: {
        title: '风险发现',
      },
    },
    {
      path: '/risk-analysis',
      name: 'risk-analysis',
      component: RiskAnalysis,
      meta: {
        title: '风险分析',
      },
    },
    {
      path: '/risk-evolution',
      name: 'risk-evolution',
      component: RiskEvolution,
      meta: {
        title: '风险演化',
      },
    },
    {
      path: '/risk-decision',
      name: 'risk-decision',
      component: RiskDecision,
      meta: {
        title: '风险决策',
      },
    },
    {
      path: '/data-index',
      name: 'data-index',
      component: DataIndex,
      meta: {
        title: '数据首页',
      },
    },
    {
      path: '/data-sentiment',
      name: 'data-sentiment',
      component: DataSentiment,
      meta: {
        title: '舆情数据',
      },
    },
    {
      path: '/data-correlation',
      name: 'data-correlation',
      component: DataCorrelation,
      meta: {
        title: '关联数据',
      },
    },
    {
      path: '/data-assess',
      name: 'data-assess',
      component: DataAssess,
      meta: {
        title: '评估数据',
      },
    },
    {
      path: '/programme-index',
      name: 'programme-index',
      component: ProgrammeIndex,
      meta: {
        title: '方案首页',
      },
    },
    {
      path: '/enterprise-risk-assessment',
      name: 'enterprise-risk-assessment',
      component: EnterpriseRiskAssessment,
      meta: {
        title: '企业风险评估',
      },
    },
    {
      path: '/account-identification',
      name: 'account-identification',
      component: AccountIdentification,
      meta: {
        title: '黑灰账户识别',
      },
    },
    {
      path: '/bill-fraud-detection',
      name: 'bill-fraud-detection',
      component: BillFraudDetection,
      meta: {
        title: '票据欺诈检测',
      },
    },
    {
      path: '/credit-risk-control',
      name: 'credit-risk-control',
      component: CreditRiskControl,
      meta: {
        title: '信贷风险控制',
      },
    },
  ]
})

export default router
